<?php


namespace app\common\model\store\product;

use app\common\model\BaseModel;
use app\common\model\store\StoreCategory;

class ProductReplyTemplate extends BaseModel
{

    public static function tablePk(): string
    {
        return 'id';
    }

    public static function tableName(): string
    {
        return 'store_product_reply_template';
    }


    public function category()
    {
        return $this->hasOne(StoreCategory::class,'store_category_id','cate_id')->field('store_category_id,cate_name');
    }

}
